home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
dev
/
c
/
AmiVoGL_MDEV.lha
/
Makefile.unix
< prev
next >
Wrap
Makefile
|
1992-03-03
|
4KB
|
228 lines
#
# Makefile for vogl (On non SGI-GL machines, if you are on an SGI and
# plan to use the real GL (as opposed to X11 on an SGI), then use the
# Makefile.sgi as this will only compile the Hershey library and the examples)
#
# Usage: make
#
# As well as selecting the devices, you may have to change LLIBS and MLIBS
# as well (see below).
#
# Some machines use /bin/csh in Make (or use the envionment variable
# SHELL. We want to us /bin/sh.
#
#SHELL = /bin/sh
# SHELL = ksh
#
# Which cc to use
#
#CC = gcc
CC = cc
#
# The devices you wish to have compiled into the library and the
# location of the object files for each device relative to the
# src directory. For each device defined there should be a
# corresponding ../drivers/file.o in the DOBJS line.
#
# Possible DEVICES and their object files are:
# -DPOSTSCRIPT ../drivers/ps.o
# -DHPGL ../drivers/hpdxy.o
# -DDXY ../drivers/hpdxy.o
# -DTEK ../drivers/tek.o
# -DSUN ../drivers/sun.o (Sunview that is)
# -DX11 ../drivers/X11.o
# -DNeXT ../drivers/NeXT.o (NeXTStep)
#
#DEVICES = -DPOSTSCRIPT -DHPGL -DTEK -DX11
DEVICES = -DPOSTSCRIPT -DX11 -DAMIGA
DOBJS = proj:vogl/drivers/ps.o proj:vogl/drivers/X11.o proj:vogl/drivers/amiga.o
#
# Where the fonts a going to live (For making the Hershey library)
# (Remember /tmp usually gets cleared from time to time)
#
#FONTLIB = /usr/local/lib/hershey/
#FONTLIB = /tmp/hfonts
# Amiga:
FONTLIB = proj:vogl/hfonts
#
# For BSD type machines we need to use ranlib
#
#RANLIB = ranlib
# If you have SYS5 then set RANLIB = "ar ts" or maybe "echo" in later versions
RANLIB = echo
#
# Set any Special floating point options here...
#
# On a SUN (use inline math functions, don't promote to double in expressions)
#FLOATING_POINT = /usr/lib/libm.il -fsingle
# On a SUN3 with an mc68881 floating point chip
#FLOATING_POINT = /usr/lib/libm.il -fsingle -f68881
#
# On a NeXT (for inline expansion of math primitives)
#FLOATING_POINT = -DINLINE_MATH
# On an SGI
#FLOATING_POINT = -float
# Or on a Decstation (running Ultrix of course)
#FLOATING_POINT = -f
#
# The amiga:
FLOATING_POINT = -f8
#
# Global CFLAGS can be set here. These are the ones we use on a sun.
#
# SUN4/SUN3
#CFLAGS = -O4
# For SUNOS 3.5 set -DSUN_3_5
#
#CFLAGS = -O4 -DSUN_3_5
#
# For SGI's
#
#CFLAGS = -DSYS5 -O
#
# Or on an apollo... (-Wp make it use the 'other cpp')
#CFLAGS = -O -Wp -M3000
#
# Or an IBM RS6000
#
#CFLAGS = $(OS) -O -Q
#
# NeXTStep....
#
#CFLAGS = -O -ObjC
# Most others....
# CFLAGS = -O
# The Amiga (QuikFix, prototyping, 68020+)
CFLAGS = -qf -wl -c2
#
# Define F77 if you want the f77 examples.
#F77 = f77
#
# You also define your f77 flags here too. These are the ones we used on sun
#
#FFLAGS = -g -w /usr/lib/libm.il
#
# Or on an apollo (We didn't have ftn)
#F77 =
#FFLAGS =
# Amiga, using Manx's Aztec C, don't need 4trash
F77=
FFLAGS=
#
# Or on an IBM RS6000
#
#F77 = xlf
#FFLAGS = -O -qextname
# The usual default...
# FFLAGS = -O
FFLAGS =
#
# The name of the library to install and where to put it.
#
LIB = libvogl.a
#DEST = /usr/local/lib
DEST = proj:vogl/lib
#
# Any other local libraries that are needed go here
#
# SUN
#LLIBS = -lsuntool -lsunwindow -lpixrect
# X11
# LLIBS = -lX11
# SGI
#LLIBS = -lgl_s
# NeXT
#LLIBS = -lNeXT_s
# Amiga
LLIBS = -lc
#
# On the NeXT there is some kind of problem with using -lm when
# linking. Leave LIBM blank in this case.
#
# Usual:
# LIBM = -lm
# Amiga
LIBM = -lm8
LIBS = $(LLIBS) $(LIBM)
MCFLAGS = $(CFLAGS) $(FLOATING_POINT)
MFFLAGS = $(FFLAGS)
all:
echo CC="$(CC) :" $(CC)
cd src; make -f Makefile \
CC="$(CC)" \
DEVICES="$(DEVICES)" \
MCFLAGS="$(MCFLAGS)" \
DOBJS="$(DOBJS)"\
RANLIB="$(RANLIB)"
cd hershey/src; make -f Makefile \
CC="$(CC)" \
FONTLIB="$(FONTLIB)" \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(LIBS)" \
RANLIB="$(RANLIB)"
cd examples; make -f Makefile \
CC="$(CC)" \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(LIBS)"
if test -n "$(F77)" ; \
then cd examples; make -f Makefile.f77 \
LIBS="$(LIBS)" \
MFFLAGS="$(MFFLAGS)" \
F77="$(F77)" ; \
fi ; exit 0
install:
cp src/$(LIB) $(DEST)
chmod 644 $(DEST)/$(LIB)
$(RANLIB) $(DEST)/$(LIB)
clean:
cd src; make clean
cd hershey/src; make clean
cd drivers; make clean
cd examples; make clean
cd examples; make -f Makefile.f77 clean
clobber:
cd src; make clobber
cd hershey/src; make clobber
cd drivers; make clobber
cd examples; make clobber
cd examples; make -f Makefile.f77 clobber